package com.example.demo.batch.demo;

import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.listener.StepListenerSupport;
import org.springframework.batch.core.scope.context.ChunkContext;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author huangke
 * @description xxx
 * @date 2021/1/21
 */
@Component
public class CommonStepListener extends StepListenerSupport<String, String> {

    public CommonStepListener() {
        super();
    }

    @Override
    public ExitStatus afterStep(StepExecution stepExecution) {
        return super.afterStep(stepExecution);
    }

    @Override
    public void beforeStep(StepExecution stepExecution) {
        super.beforeStep(stepExecution);
    }

    @Override
    public void afterChunk(ChunkContext context) {
        super.afterChunk(context);
    }

    @Override
    public void beforeChunk(ChunkContext context) {
        super.beforeChunk(context);
    }

    @Override
    public void afterRead(String item) {
        super.afterRead(item);
    }

    @Override
    public void beforeRead() {
        super.beforeRead();
    }

    @Override
    public void onReadError(Exception ex) {
        super.onReadError(ex);
    }

    @Override
    public void afterWrite(List<? extends String> items) {
        super.afterWrite(items);
    }

    @Override
    public void beforeWrite(List<? extends String> items) {
        super.beforeWrite(items);
    }

    @Override
    public void onWriteError(Exception exception, List<? extends String> items) {
        super.onWriteError(exception, items);
    }

    @Override
    public void afterProcess(String item, String result) {
        super.afterProcess(item, result);
    }

    @Override
    public void beforeProcess(String item) {
        super.beforeProcess(item);
    }

    @Override
    public void onProcessError(String item, Exception e) {
        super.onProcessError(item, e);
    }

    @Override
    public void onSkipInProcess(String item, Throwable t) {
        super.onSkipInProcess(item, t);
    }

    @Override
    public void onSkipInRead(Throwable t) {
        super.onSkipInRead(t);
    }

    @Override
    public void onSkipInWrite(String item, Throwable t) {
        super.onSkipInWrite(item, t);
    }

    @Override
    public void afterChunkError(ChunkContext context) {
        super.afterChunkError(context);
    }
}